Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

Events with Date parameters failing

#26

From: John
Date: Fri, Sep 25, 2009 at 6:13 AM
Subject: [RiCal] Setting dtstart to a date
To: RiCal rical_gem@googlegroups.com

I am trying to set the dtstart value of an Event to a Date, not a date
time. This is to create a 'All Day' event so I don't want the time
set.

However when I try to do this I get this error:

NoMethodError (undefined method for_parent' for 2009/9/30 0:0:0<br/> 0:RiCal::FastDateTime):<br/>    /vendor/gems/ri_cal-0.8.4/lib/ri_cal/property_value/date.rb:131:in<br/>send'    /vendor/gems/ri_cal-0.8.4/lib/ri_cal/property_value/date.rb:131:in
method_missing'    /vendor/gems/ri_cal-0.8.4/lib/ri_cal/properties/event.rb:123:in<br/>dtstart_property='    /vendor/gems/ri_cal-0.8.4/lib/ri_cal/properties/event.rb:128:in
dtstart='    /vendor/gems/ri_cal-0.8.4/lib/ri_cal/component.rb:36:insend'
   /vendor/gems/ri_cal-0.8.4/lib/ri_cal/component.rb:36:in
method_missing'    /lib/workbooks/ui/renderers/ics/ics_renderer.rb:51:instart_tree'

I am passing in a ruby Date object, obtained from a Rails model using
'to_date'.

Should I be passing in something different to set a Date value, or is
there a bug here? I notice PropertyValue::DateTime has a 'for_parent'
method, but FastDateTime doesn't?

Thanks

John.

Reported by Rick DeNatale · September 27th, 2009 @ 04:41 PM

State: new
Milestone: none
Assigned to: Rick DeNatale Rick DeNatale

Activity

  1. Simone Carletti
    Simone Carletti

    Same problem here. Using ri_cal 0.8.4

    undefined method `for_parent' for 2009/11/25 0:0:0 0:RiCal::FastDateTime
    

    September 28th, 2009 @ 02:54 PM

  2. Rick DeNatale
    Rick DeNatale

    I've already fixed this and pushed version 0.8.5 to github.

    Unfortunately github has disabled gem building after their move from Engine Yard to Rackspace this past weekend, so it's not available as a gem there. I just released it on rubyforge, so for the time being rubyforge gems are actually ahead of github

    September 28th, 2009 @ 05:38 PM

  3. Rick DeNatale
    Rick DeNatale
    • State changed from new to resolved

    This was fixed in 0.8.5

    October 18th, 2009 @ 04:35 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.